<?php drupal_add_css(drupal_get_path('theme', 'nobel') . '/css/styles.css', array('group' => CSS_THEME)); ?>
<style type="text/css">
  .message {
    margin-bottom: 10px;
    border: 1px solid #be7;
    background-image: url('/misc/message-24-ok.png');
    background-position: 8px 8px;
    background-repeat: no-repeat;
    padding: 10px 10px 10px 50px;
    font-size: 10pt;
    background-color: #f9fef1;
    color: #234600
  }
</style>

<main id="content" role="main">
  <div class="container clearfix">
    <h1 class="b">账号与密码</h1>
    <div class="mod mod-headline"></div>
    <div class="g-row g-layout-responsive-33-66">
      <?= $menu ?>
      <div class="g-col g-col-2">
        <?php
        $messages = drupal_get_messages();
        ?>
        <?php if (!empty($messages['status'][0])): ?>
          <div class="message">
            <?= $messages['status'][0] ?>
            </div>
        <?php endif; ?>
        <div class="par parsys">

          <div class="formBox">

            <form class="b" method="<?= $form['#method'] ?>" id="<?= $form['#id'] ?>" action="<?= $form['#action'] ?>" novalidate="novalidate">
              <?= drupal_render($form['form_build_id']) ?>
              <?= drupal_render($form['form_id']) ?>
              <?= drupal_render($form['form_token']) ?>
              <ul class="form-list">
                <li class="form_control">
                  <label for="name" class="title required">手机号码</label>
                  <div class="input-box">
                    <input disabled="disabled" class="required input-text" value="<?= $form['name']['#value'] ?>" type="text" tabindex="1">
                    <input value="<?= $form['name']['#value'] ?>" type="hidden" name="name" id="name" tabindex="1">
                  </div>
                  <?php if (!empty(form_get_errors()['name'])) { ?><span id="edit-name-error" class="error"><?= form_get_errors()['name'] ?></span><?php } ?>
                </li>

                <li class="form_control">
                  <label for="mail" class="title required">邮箱</label>
                  <div class="input-box">
                    <input class="required input-text <?php if (!empty(form_get_errors()['mail'])) { ?> error<?php } ?>" value="<?= $form['mail']['#value'] ?>"
                           type="text" name="mail" id="mail" tabindex="1">
                  </div>
                  <?php if (!empty(form_get_errors()['mail'])) { ?><span id="edit-name-error" class="error"><?= form_get_errors()['mail'] ?></span><?php } ?>
                </li>

                <li class="form_control">
                  <label for="realname" class="title required">姓名</label>
                  <div class="input-box">
                    <input class="required input-text <?php if (!empty(form_get_errors()['realname'])) { ?> error<?php } ?>"
                           value="<?= $form['realname']['#value'] ?>" type="text" name="realname" id="realname" tabindex="1">
                  </div>
                </li>

                <li class="form_control">
                  <label for="current_pass" class="title">当前密码</label>
                  <div class="input-box">
                    <input autocomplete="off" class="input-text <?php if (!empty(form_get_errors()['current_pass'])) { ?> error<?php } ?>" type="password" name="current_pass" id="current_pass" tabindex="1">
                  </div>
                  <?php if (!empty(form_get_errors()['current_pass'])) { ?><span id="edit-name-error" class="error"><?= form_get_errors()['current_pass'] ?></span><?php } ?>
                </li>

                <li class="form_control">
                  <label class="title">密码</label>
                  <div class="input-box">
                    <input autocomplete="off" class="input-text <?php if (!empty(form_get_errors()['pass1'])) { ?> error<?php } ?>" value="" type="password" name="pass1" id="pass1" tabindex="1">
                  </div>
                  <?php if (!empty(form_get_errors()['pass1'])) { ?><span id="edit-name-error" class="error"><?= form_get_errors()['pass1'] ?></span><?php } ?>
                </li>

                <li class="form_control">
                  <label class="title">确认密码</label>
                  <div class="input-box">
                    <input autocomplete="off" class="input-text <?php if (!empty(form_get_errors()['pass2'])) { ?> error<?php } ?>" value="" type="password" name="pass2" id="pass2" tabindex="1">
                  </div>
                </li>

                <li class="form_control">
                  <div class="buttons-set form-buttons btn-only">
                    <button type="submit" class="button colored" name="saveBtn" id="saveBtn">
                      <span>保存</span>
                    </button>
                  </div>
                </li>
              </ul>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</main>